package com.yanzhen.dao;

import com.yanzhen.model.ApplyEvent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 王文龙
 * @since 2023-05-13
 */
@Component("appEventDao")
public interface ApplyEventMapper extends BaseMapper<ApplyEvent> {
    /**
     * 高级查询
     */
    List<ApplyEvent> queryApplyList(ApplyEvent applyEvent);


    /**
    * 根据id，查询审核记录
     */

    List<ApplyEvent> queryAppListByAppId(@Param("id") int id);

    /**
    * 修改审核状态
    */
    boolean updateCheckStatus(ApplyEvent applyEvent);

    /**
    * 添加审批记录
    */
    int updateAppList(ApplyEvent applyEvent);
}
